﻿@model  Ema.Models.XtModel.SubXtUser

@{
    Layout = "/views/shared/SimLay.cshtml";
    string url = ViewBag.url;
}



<div class="header">
    <div class="am-g">
        <h1>后台系统</h1>
        <p>请先登陆</p>
    </div>
    <hr />
</div>
<div class="am-g">
    <div class="am-u-lg-4 am-u-md-6 am-u-sm-10 am-u-sm-centered ">

        @using (Html.BeginForm("Login", "Admin", FormMethod.Post, new { @class = "am-form" }))
        { 
            @Html.Hidden("url", url)
            <label for="Name">用户名:</label>
            @Html.TextBoxFor(a => a.UserName)
            <br>
            <label for="Pwd">密码:</label>
            @Html.TextBoxFor(a => a.Pwd, new { @type = "password" })
            <br>
     
            <label for="remember-me" class="am-checkbox">
                <input id="remember-me" type="checkbox" data-am-ucheck>
                记住密码
            </label>

            <br />
            <div class="am-cf ">
                <div class="am-u-md-6 am-u-sm-centered">
                    <input type="submit" name="" value="登 录" class="am-btn am-btn-block  am-btn-primary am-btn-sm am-fl am-btn-lg">
                </div>
            </div>
            <p class="am-text-center  am-text-danger">@ViewBag.ms</p>
        }

        <hr>
        <p>© 2015.</p>
    </div>
</div>

@section scripts
{
    <script>
        $(function () {
            if ($("#UserName") != "" && $("#Pwd") != "") {
                $("form").submit();
            }
        })
    </script>
}
 